package com.pengke.pangu.service.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
 * <p>
 * 系统用户
 * </p>
 *
 * @author lijunjie
 * @since 2025-02-12
 */
@Getter
@Setter
@ToString
@TableName("sys_user")
@Schema(name = "SysUser", description = "系统用户")
public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 账户
     */
    @TableField("account")
    @Schema(description = "账户")
    private String account;

    /**
     * 密码
     */
    @TableField("password")
    @Schema(description = "密码")
    private String password;

    /**
     * 用户名称
     */
    @TableField("user_name")
    @Schema(description = "用户名称")
    private String userName;

    /**
     * 昵称
     */
    @TableField("nick_name")
    @Schema(description = "昵称")
    private String nickName;

    /**
     * 头像
     */
    @TableField("avatar")
    @Schema(description = "头像")
    private String avatar;

    /**
     * 性别
     */
    @TableField("sex")
    @Schema(description = "性别")
    private String sex;

    /**
     * 电话
     */
    @TableField("phone")
    @Schema(description = "电话")
    private String phone;

    /**
     * 邮箱
     */
    @TableField("mail")
    @Schema(description = "邮箱")
    private String mail;

    /**
     * 地址
     */
    @TableField("address")
    @Schema(description = "地址")
    private String address;

    /**
     * 排序
     */
    @TableField("order_id")
    @Schema(description = "排序")
    private Integer orderId;

    /**
     * 账户锁定
     */
    @TableField("locked")
    @Schema(description = "账户锁定")
    private Integer locked;

    /**
     * 账户禁用
     */
    @TableField("disabled")
    @Schema(description = "账户禁用")
    private Integer disabled;

    /**
     * 删除标记
     */
    @TableLogic
    @TableField("deleted")
    @Schema(description = "删除标记")
    private Integer deleted;

    /**
     * 创建者
     */
    @TableField("create_user")
    @Schema(description = "创建者")
    private Integer createUser;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新者
     */
    @TableField("update_user")
    @Schema(description = "更新者")
    private Integer updateUser;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @Schema(description = "更新时间")
    private Date updateTime;
}
